-- GENERATED SPELL FOR [Amani'shi Wind Walker] --


function spell0_24179(pUnit, Event) --@Chain Heal,Heal--
pUnit:FullCastSpellOnTarget(43527,pUnit)
pUnit:RegisterEvent('Sorts_24179', 2000, 1)
end

function spell1_24179(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(43524,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24179', 6315, 1)
end

function spell2_24179(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(43526,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24179', 1500, 1)
end

function Sorts_24179(pUnit, Event)
local choix_sorts_24179 = math.random(0, 2)
if choix_sorts_24179 == 0 then
pUnit:RegisterEvent('spell0_24179', 1, 1)
end
if choix_sorts_24179 == 1 then
pUnit:RegisterEvent('spell1_24179', 1, 1)
end
if choix_sorts_24179 == 2 then
pUnit:RegisterEvent('spell2_24179', 1, 1)
end
end

function mob24179_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24179', math.random(1500, 3000), 1)
end

function mob24179_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24179_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24179_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24179, 1, 'mob24179_Action')
RegisterUnitEvent(24179, 2, 'mob24179_Leave')
RegisterUnitEvent(24179, 3, 'mob24179_Kill')
RegisterUnitEvent(24179, 4, 'mob24179_Die')
